| Previous | Chapter contents | Chapter top | Section top | Next |
You can use the QTVRGetBackBufferSettings function to get information about the resolution, depth, and size of the back buffer maintained internally by QuickTime VR for caching a panoramic image in a particular pixel format.
OSErr QTVRGetBackBufferSettings (
QTVRInstance qtvr,
UInt16 *resolution,
UInt32 *cachePixelFormat,
SInt16 *cacheSize);
The QTVRGetBackBufferSettings function returns, through the resolution parameter, the index of the current resolution for the QuickTime VR movie specified by the qtvr parameter. The index indicates which bit in the mask value returned by QTVRGetAvailableResolutions specifies the current resolution. For example, if the returned index is 1, the base resolution is being used. If the returned index is 2, then a resolution of half the base resolution is being used.
QTVRGetBackBufferSettings also returns the pixel format and the cache size in the cachePixelFormat and cacheSize parameters, respectively.
Use QTVRSetBackBufferPrefs (next) to set the resolution, cache depth, and cache size of the panorama back buffer maintained internally by QuickTime VR for caching an image. Use QTVRGetAvailableResolutions [link] to determine which resolutions are supported by a node. Use QTVRGetBackBufferMemInfo [link] to determine the memory requirements for the preferred settings.
| Previous | Chapter contents | Chapter top | Section top | Next |